package jwr.basic;

public class Ch04_Ex01 {

	public static void main(String[] args) {
		/*Song sn = new Song();
		
		sn.show("Dancing Queen", "ABBA", "The Albums", "ABBA", "2008.11.07",2);*/
		Song sn = new Song("Dancing Queen", "ABBA", "The Albums", "ABBA", "2008.11.07",2);
		System.out.println(sn.show());
	}
	
}

class Song{
	private String title, artist, album, composer,year;
	private int track;
	public Song() {
	}
	public Song(String title, String artist, String album, String composer, String year, int track){
		this.title = title;
		this.artist = artist;
		this.album = album;
		this.composer = composer;
		this.year = year;
		this.track = track;
	}
	public String show(){
		String result=" ";
		result = "제목 : "+title;
		result += "\n가수 : "+artist;
		result += "\n앨범제목 : "+album;
		result += "\n작곡가 : "+composer;
		result += "\n발표연도 : "+year;
		result += "\n트랙번호 : "+track;
		return result;
	}
}
